package org.bouncycastle.crypto.params;

import java.security.SecureRandom;

import org.bouncycastle.crypto.KeyGenerationParameters;

/**
 * 椭圆曲线密钥创建参数
 * 
 * @author john.peng
 *
 */
public class ECKeyGenerationParameters extends KeyGenerationParameters {
	private ECDomainParameters domainParams;

	/**
	 * 默认的构造函数
	 * 
	 * @param domainParams ECDomainParameters
	 * @param random       SecureRandom
	 */
	public ECKeyGenerationParameters(ECDomainParameters domainParams, SecureRandom random) {
		super(random, domainParams.getN().bitLength());

		this.domainParams = domainParams;
	}

	/**
	 * 获取ECDomainParameters
	 * 
	 * @return ECDomainParameters
	 */
	public ECDomainParameters getDomainParameters() {
		return domainParams;
	}
}
